package com.abctime.demo;

import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.abctime.api.ABCLibraryApi;
import com.abctime.api.UserData;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }

    public void openLibrary(View view) {
        UserData data = new UserData();
        data.uid = "10003";//该平台用户id
        data.age = "11";//年龄
        data.grade = "5";//年级
        data.client = "3";//用户端口1 教师 2 课堂 3学生端
        data.sex = "1";//0保密1男，2女
        data.province = "北京";
        data.city = "北京市";
        data.area = "海淀区";
        ABCLibraryApi.startLibrary(this, data);
    }
}
